package com.winning.lambda;

import org.junit.Test;

import java.util.Arrays;
import java.util.List;

public class TestStramAPI {

    List<Employee> emps = Arrays.asList(
            new Employee(101, "张三", 18, 9999.99),
            new Employee(102, "李四", 59, 6666.66),
            new Employee(103, "王五", 28, 3333.33),
            new Employee(104, "赵六", 8, 7777.77),
            new Employee(105, "田七", 38, 5555.55),
            new Employee(105, "田七", 38, 5555.55),
            new Employee(105, "田七", 38, 5555.55)
    );

    @Test
    public void test1(){

        emps.stream().distinct().forEach(System.out::println);

    }
}
